import Ember from 'ember';
import config from 'game-front/config/environment';
import RSVP from 'rsvp';

export default Ember.Route.extend({
	model(params) {
		console.log(params);
		return RSVP.hash({
			result:params,
			userInfo: Ember.$.getJSON(config.apiBase + "members", {userId:params.key}),
			qrInfo:Ember.$.getJSON(config.apiBase + "share/qr", {userId:params.key})
		});
	}
});
